package com.example.multilevelapprovalback.pojo;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.example.multilevelapprovalback.listener.LevelConverter;
import com.example.multilevelapprovalback.listener.YearConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.time.Year;
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class TeachingProjectExcel {
    @ExcelProperty("项目编号")
    private String projectNumber;  //用户工号
    @ExcelIgnore
    private String name;  //用户姓名
    @ExcelProperty("项目负责人工号")
    private String jobNumber;  //用户工号
    @ExcelProperty(value = "级别", converter = LevelConverter.class)
    private Integer achievementLevelId;  //成果级别ID
    @ExcelProperty("项目名称")
    private String projectName;  //教学项目名
    @ExcelProperty(value = "立项时间(年/月)", converter = YearConverter.class)
    private Year year; //获批年度
    @ExcelProperty("项目负责人")
    private String leader; //项目负责人
    @ExcelProperty("其他成员")
    private String others;  //其他成员
    @ExcelProperty("备注")
    private String comment;  //备注
    @ExcelProperty("类别")
    private String type;  //类别：产学合作协同育人
    @ExcelIgnore
    private Integer statusId = 4;  //状态ID;
    @ExcelIgnore
    private Integer achievementTypeId = 1;  //成果类别ID
    @ExcelIgnore
    private LocalDateTime createTime = LocalDateTime.now();  //创建时间
    @ExcelIgnore
    private LocalDateTime updateTime = LocalDateTime.now();  //修改时间
    @ExcelIgnore
    private String codeNumber; //项目编码
}

